import react,{Fragment} from "react";
class Test extends react.Component{
    render(){
        const {content}=this.props
        return(
            <Fragment>
                <li onClick={this.handleDel.bind(this)} dangerouslySetInnerHTML={{__html:content}}></li>
            </Fragment>
        )
    }
    handleDel(){
        this.props.handelDel(this.props.index)
    }
}
export default Test